Yes off course knowledge of html and css will surely help you in SEO. But still if you don't have for the time being you can do SEO and with that you can carry on with grabbing the knowledge of html.