There's some things you can do to quieten a bedroom passively at least. Closed windows, noise muffling vents (because fresh air is also important during sleep). Thick and heavy curtains will muffle a lot of sounds and prevent it from bouncing around, the bigger the better (wall to wall, floor to ceiling). You can have another layer of that around your bed, old style curtain beds. Carpet on the floors instead of laminate or something else.
Next level would be adding noise insulation to the walls and the like, but that's a bigger time/money/effort investment.
Moving to the suburbs or the countryside is an option, but won't be a panacea; you'll have different sounds, sound travels further, houses won't be built with city noise in mind, and they're likely to be older so less well insulated to begin with.
Anyway, passive noise insulation first, I wouldn't use earbuds or anything covering / plugging the ears, and things like white or pink noise generators are a last ditch effort (they will put constant sound pressure on your ears instead of silence, idk if that's harmful but it's something to keep in mind)