welcome to dreamviews!

Yea I think a white noise machine would be your cheapest option, much better than soundproofing your apartment. Senses in real life affect your dreams while you are sleeping so yea I think the noise outside might affect your dreams.