Hey Jalaal! This is a fantastic question and I'm glad to hear you're thinking ahead like this. From my experience majoring in Computer Science at college, I never saw that there was a preferred operating system in order to complete programming projects. I used a Mac laptop, but saw many students with Windows computers.
However, many software developers in the industry develop on Linux, so we utilized this free tool called Oracle VM Virtualbox to boot up a virtual machine running Linux. Here's a link to the application which runs on all major operating systems: https://www.virtualbox.org/. So in short, no there is no preferred operating system since you can use cool tools like this to use any OS you want or need.
Hope this helps,