Ubuntu 21.04: using Nvidia GPU for CUDA computation only, Intel and Wayland + Gnome for desktop environment?

Is it possible on an Optimus laptop, with for example an MX450, to use the Intel graphics for the desktop environment and use Wayland, while allowing CUDA to function properly? Thanks