You have to put yourself in the mind of the officer reviewing your application in that would you approve an application based on what you write.
So for example if you have picked out a random course that doesn't map to your education or any experience in your home country or part of any longer term development goals but the course is just a means to try for a PGWP or PR then that would not be seen as a valid purpose.