Question: do the avengers and xmen live in the same universe

Answer: Yes, The Marvel Universe is a fictional universe where the stories in most American comic book titles and other media published by Marvel Entertainment take place. Super-teams such as the Avengers, the X-Men, the Fantastic Four, the Guardians of the Galaxy, the Defenders, the Inhumans and other Marvel superheroes live in this universe, including characters such as Spider-Man, Captain America, Iron Man, Thor, Daredevil, The Hulk, Wolverine, Punisher, Moon Knight, Deadpool, Blade, Ghost Rider, Doctor Strange and numerous others.