I was wondering the same thing. Yes, you definitely can.
Right-click on the folder with the code files -> Open with -> Open with Visual Studio
If it's uploaded on GitHub, click on the green drop-down-menu Code -> Open with Visual Studio
How it looks on Github