Yes. Both tanha and upadana can happen with like or dislike.
– Tanha is the initial “attachment”.
– Then one may keep thinking about it and “keep it close” (in the mind). That second step is upadana.
For example, if you see someone you really dislike on the street, anger may arise in you. That is due to tanha.
– If you keep thinking about how bad he is, and his past actions against you, then you are “pulling it close” and making it worse. That is upadana.
The following posts could be helpful:
The following series of posts have examples:
Paṭicca Samuppāda in Plain English
P.S. I just replied to question in another thread. And the post discussed there is relevant too:
Difference Between Tanhā and Upādāna