Yeah, if you get a new set of genitals, you also get everything you need for it to function properly - for a cock, that includes both prostate and testes, though if you don't have balls the latter are internal and not really mentioned in text (though if it's like TiTS, they still exist in the code to determine cum production, they just have a count of 0).