No, you would need to have a GPU installed in your machine in order to run CUDA code.
If you currently don’t have a GPU device, you could use Google Colab or any other cloud service, which provides GPUs.
If I’m not mistaken, you can use a GPU in Colab for a specific time frame (12h?) until the runtime disconnects.