During the plague of 1527 Luther wrote
Those who are engaged in a spiritual ministry such as preachers and pastors must likewise remain steadfast before the peril of death. We have a plain command from Christ, “A good shepherd lays down his life for the sheep but the hireling sees the wolf coming and flees” [John 10:11]. For when people are dying, they most need a spiritual ministry which strengthens and comforts their consciences by word and sacrament and in faith overcomes death. However, where enough preachers are available in one locality and they agree to encourage the other clergy to leave in order not to expose themselves needlessly to danger, I do not consider such conduct sinful because spiritual services are provided for and because they would have been ready and willing to stay if it had been necessary. We read that St. Athanasius fled from his church that his life might be spared because many others were there to administer his office. Similarly, the brethren in Damascus lowered Paul in a basket over the wall to make it possible for him to escape, Acts 9 [:25]. And also in Acts 19 [:30] Paul allowed himself to be kept from risking danger in the marketplace because it was not essential for him to do so.
Seems right to me.