“I just learned that he hates me. ”

Can I say it this way? He still hates me so I used "hates".

My teacher told me that you cannot (or couldn't?) mix different tenses in a single sentence....Is that true?