This isnt an example of "defeating the purpose". This is something that might be considered pointless, like making your bed when you'll just sleep in it again later.
Defeating the purpose would be writing the password to your computer on a sticky note and putting it where anyone can see it.