No – being baptized doesn’t mean you’re perfect.  If you are trusting Christ for salvation, you’re ready to be baptized.