Yes, as long as there are ongoing moral issues. For example, someone married outside the Church still needs their marriage validated. Or someone who works in an immoral job would still need to find other employment. However, by and large, yes all it takes to return to the Church is a good confession.