No. A gas will expand to fill it's container.
Consider a sample of chlorine gas made in a test tube. Let's say it is 50 mL. If the stopper of the test tube is removed, the gas will diffuse into the room. If all the doors and windows are closed, the volume the chlorine gas eventually occupies = the volume of the room.
Solids and liquids have a definite volume. 50 mL of water will occupy that volume regardless of where it is i.e. in a beaker, in a water bottle, in a tray, in a puddle on the floor.