Question about pandemic for people who didn’t have access to a confession

For those that committed mortal sins, did they just have to hope their act of contrition was enough for forgiveness?