While it’s technically possible to host Nextcloud on your main computer or even a smartphone, it will not provide you with anything usable.A dedicated server or specific hardware is generally a better choice for reliability, security, and scalability.
It sounds like you’re very new in this area. I’d recommend taking some time to learn about privacy basics and using hosted services before looking into more advanced topics like this. Otherwise, you can set yourself up for failure.