It's long been proposed to build rotating colonies (ring worlds) in outer space.
That concept can also be applied to surface colonies in low-g environments. (Luna is at 1/6th of Earth gravity; Mars is at 1/3.)
Conceivably, spacecraft built for long trips could rotate to provide artificial "gravity" as well. Creating a large cross-section might not be so great in light of the idea of collision with space debris, but at present I choose not to make a thorough evaluation of the practical concerns of that. Acceleration could also be produced by attaching a tether and counterweight to the habitable module. This would reduce cross-sectional area.
But, what is possible is not necessarily what is the best solution. Are rotating habitats considered the standard solution for long-term human habitations in low-g environments? If not... why not?