Yes, you can be terminated for missing work due to jail. The law does not require employers to retain employees who miss work, even if they miss it for reasons not wholly under their contro, like being in jail--though arguably, you do control it to a great degree, since you could have not engaged in the behavior which resulted in jail time.