Can i use VPS (virtual private server) instead of pc for game development

i want to use vps for game development, i think this will cost me less than a brand new pc with good spec and good graphic card…