The equation PV = nRT must have coherent units to be valid.
The posters above are all correct, but to clarify it all:
In schools we usually use volume in dm3 and pressure in kPa.
However if we represent the pressure in Pa the volume must be represented in m3
PV must be constant. So if one unit is multiplied by 1000 the other must be divided by 1000.
We could also represent volume in cm3 and the pressure in MPa, for instance.