The Ethics & Professional Skills module is completely separate to the P1 exam. It is an online training module that you must complete in order to get your qualification. The current version takes around 3 hours to complete and is free, but it is being replaced by a new version at the end of this month which takes 20 hours and you must pay a fee for. You can do it before or after you sit P1, it makes no difference.