Yes, if you mention the basic sins, then they are forgiven—just as long as one doesn’t deliberately with-hold any mortal sins. If the priest wants more information, he can ask for it.
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.