Laurie F. Maffly-Kipp, Leigh E. Schmidt, and Mark Valeri, eds., Practicing Protestants: Histories of Christian Life in America, 1630–1965 (Baltimore MD: Johns Hopkins University Press, 2006), 138-49. ISBN9780801883620; and "The Protestant Heritage". Encyclopedia Britannica. Retrieved 2019-06-10.
"The anointing of the sick can be administered to any member of the faithful who, having reached the use of reason, begins to be in danger by reason of illness or old age" (Code of Canon Law, canon 1004 §1).
Thus, it is a "sacrament of the living" meaning that one, unless unconscious, must be in the state of grace to receive it fruitfully. If a Catholic were to receive it in the state of mortal sin, it would be a sacrilege. However, the graces of the sacrament would revive once said person received absolution in the sacrament of penance.
Code of Canon Law, canon 1007