No it is not necessary, you can be a domicile of UP if you have the certificate, even if you have completed your class 12th from Tamil Nadu.
Do not worry.
For which examination's state quota are you applying to? Please answer this, I would be able to help you better.
All the Best!!!
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile