Since I'm not a psychiatrist or biologist or whatever it'd take to have an educated opinion on the matter, I obviously don't know (and I don't think they do either, at least not currently). But even if there could be a hereditary component to those, some sort of genetic predisposition, it obviously isn't the only way to be any of them, since people can be groomed gay/trans at the very least (unsure about the other).
We should hope it's not true anyway, because if you're trying to wipe out pedophiles and find out it's genetic, then whenever a parent is caught with that kind of porn you'd not only have to kill the parent but their kids, and killing kids to protect other future kids from hypothetically being molested is some weird social math. Might make for an interesting Stephen King book, but not a good reality lol