Yes, you can.
Although it would be safer to format the HDD.
I think there weren't any reported bans due to CFW on the PSN,
so I wouldn't worry that much if I were you.
You can manually delete your homebrew before you update, since it will no longer work on OFW.
In the end, it's up to you to format or not format your HDD.