Can a region near the ocean be cooler than a region inland of the same latitude

Sure, why not?