Data will transfer. Programs mostly won’t. You’d have to install the programs you use (MS Office, for example) on the MAC. The issue is that older software versions are not usually compatible with new operating systems. So the software would need to be upgraded. If you run any unusual software, you’d have to make sure a Mac version exists. Once your programs are ready, your data files can usually be moved, opened in the new Mac software, and saved as a Mac version of things. It’s a process, but unless you have something incompatible, you’d probably be ok. If not, you’re better off sticking with a Win 10 machine. (But you’d still need to install your software on a new PC, which might also require upgrading.)
Good luck!
Dave