So purgatory is implied scripturally?
Yes.
Don’t you believe in Spirit Prison?
from lds.org
Spirit prison is a temporary state in which spirits will be taught the gospel and have the opportunity to repent and accept ordinances of salvation that are performed for them in temples (see D&C 138:3035). Those who choose not to repent but who are not sons of perdition will remain in spirit prison until the end of the Millennium, when they will be freed from hell and punishment and be resurrected to a telestial glory (see D&C 76:8185).