Nope, Pedophilia in itself is not illegal. However child molestation is, yes, there is a huge difference.
Pedophilia is a state of being, if it was illegal, it would essentially be a thought crime.
As for the comparison itself, it's simply insane to suggest that sex between consenting...