Have I finished the module automatically by passing the exam?
No, the exam itself is not enough.
To sucessfully complete a module and receive the respective credit points, you also need to have confirmation of the active and regular participation. The basis for confirmation of participation is dependent on the module and lecturer.
Only if you have fulfilled all three criteria, you completed the module.