Expired Domains Topic

Hi, I am new to SEO and start to aquire some Knowledge in this. I would like to know if I buy an expired domain at Godaddy or somewhere else and want to use it as PBN for my $ Site. Do I have to keep the same topic of the expired domain as it was or can I build it on new topic ? won't this affect the coming backlinks to this expired domain ?