Yes you can. But it is not ideal. I have 400gb in the cloud but my Mac has only 256.
Here is how I have done it. First load some data and sync to cloud. Then remove the downloads. The data remains in the cloud and you can force a download when needed.
The problem is if you reorganise your cloud data it tries to sync everything and you have to go through the remove download process again. I am going through this now and it may be more trouble than it is worth.
I suspect that updating macOS may also trigger a full download. I know that I should have bought more storage in the first place but I would rather pay Apple than another cloud supplier.
This is not a problem for me but it is fun finding out what I can do.