Of course it is, but as stories are planned up to a year in advance any unexpected absences are bound to cause a bit of a headache for the writers.
At least with a pregnancy they get a few months warning. Sudden absences due to sickness etc must be a nightmare.