Yes, it’s possible. For example, if you are over age 71 and can no
longer contribute to your own RRSP,
you can still contribute to your spouse's RRSP until the end of the
year they turn 71.
Remember that the total amount you contribute to your and your spouse’s RRSP cannot exceed your personal contribution limit.
Learn more about how to reduce your tax bill after retirement.