Yes, we can. We can totally create the artificial gravity seen in movies like 2001: A Space Odyssey or Elysium, it’ll just cost a lot of money and require a lot of resources.
Real Engineering explains how centrifugal force works as artificial gravity and estimates (using maths cribbed from how much the ISS costs) the cost needed to build it: only around five trillion dollars and 10 years of the world’s total aluminium production. And that’s just for starters.
But if you split that up between 500,000 people at $10 million a pop and find a whole load of aluminium in space... hey, it can totally become a reality.