No. You do not have to get the electronic visa to Tajikistan as long as you are not going to leave the international transit area.