Can I run CUDA with a Dell Laptop with GeForce RTX 3050

Hi All, I like to start learning CUDA programming.
I am eyeing a Dell G15 laptop which has Nvidia GeForce RTX 3050. I will put Ubuntu on it.
If I install the CUDA toolkit, I should be able start using this machine to learn CUDA programming?
Just want to confirm before I spend money. Thanks a lot!

Yes, it will work just fine.