Yes. And this is why the nvcc preprocessor is so effective at working with the various host compilers. It emulates properties of the host compiler so that the device code and host agree on things.
You can see some discussion here:
https://forums.developer.nvidia.com/t/nvcc-preprocessing/649...