In The Expanse, this is exactly how ships are set up. The "floor" is towards the engine and the continuous 1g acceleration provides "gravity". When a ship starts decelerating there is a "flip and burn" where everyone straps in while the ship literally turns around and starts accelerating at 1g in the opposite direction (meaning it's slowing down relative to its destination).