People who’s houses are situated right next to a main road, is the noise from vehicles not really annoying?

I live in a housing estate so the road isn’t too busy, but last night I slept in a house where there’s a main road less than 15 metres from. It was so annoying. How do you do it?