It depends on the onshore flow ocean breezes and the distance inland you are talking about. The ocean cools the air for miles and miles inland, but at a certain point, the sun heats up the land and the land heats the air and it starts to get hot, the cooling effect of the ocean only goes so far.