If by "hearsay", you mean the alleged victim or others testified that they saw him commit the act, that is not hearsay and he can be convicted.
If by "hearsay", you mean the alleged victim or others testified that they saw him commit the act, that is not hearsay and he can be convicted.