Would it be right if I say that the direction of Tefila (temple) is always in the direction of sunrise?
No it is incorrect. The direction of prayer is in the direction of the site of the Beit Hamidkash (the Temple) in Jerusalem. The Gemara (Brakhot 30a) writes (commentary R Adin Steinsaltz)
One who was standing in prayer in the Diaspora, should focus his heart toward Eretz Yisrael [...] One who was standing in Eretz Yisrael, should focus his heart toward Jerusalem [...] One who was standing in Jerusalem, should focus his heart toward the Temple [...]
This is picked up in the halachic codes, see e.g., SA OC 94:1
As such, those directly West of Jerusalem pray in direction of the East (sunrise), but for most Jews, the direction of prayer does not correspond straight to the East. In Europe for instance, the right direction will be somewhat to the South East.
HalachaYomit notes it is a common mistake
Some people always look to pray eastward based on the direction where the sun rises and this mistake is based on the saying Ashkenazim have coined of praying facing “Mizrach”. However, in truth, one must always face the Land of Israel, Jerusalem, and the Bet Hamikdash.
For more details see Peninei Halacha here and remember his conclusion
One who does not know the direction of Jerusalem may pray to whichever direction he desires while directing his heart towards his Father in Heaven (Shulchan Aruch 94:3). Even if he subsequently discovers that he was mistaken, it is not necessary to repeat his prayer while facing Jerusalem
And for many more details see R Broyde at TorahMusings