Many years ago I was stopped by a State Trooper for speeding on the highway entrance ramp! Go figure. As you said, you need to get up to speed to merge onto the freeway. I wasn't written a ticket.
Sometimes it isn't clear that there's going to be a space to merge into if you accelerate up to the speed limit on the onramp.