I think where they are out of communion with Rome, the answer is “no”. However, as stated, if you confessed to one not realizing they were SSPX, I believe God would consider you absolved of your sins.
Rhetorical musing: Just wondering why anyone would choose to seek a sacrament from someone out of communion with the universal Church… I wonder what type of spirit would lead one there?
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.