Capital gains

An elderly couple’s home is in an irrevocable trust. The husband dies and the wife goes into a nursing home. If the executor sells the home will there be capital gains taxes since the wife is still living ?