Can you have a tubal ligation while pregnant?

No. there is no way of performing the operation without risk to the unborn baby. Many are performed during c-sections or immediatley after birth or months after birth. its a very serious operation that has a very low reversablitly rate, and should be considered permanent.