It’s nearly impossible to buy a good PC with just $500 -> you can just reach that price when you buy everything as a second-hand article
But of course when you already have RAM, a screen, motherboard,… then it should be possible ^^ ( I did it like that)