Forum Moderators: not2easy
To answer your question, yes you can. However, my thought is whether you should.
I advocate avoiding inline styles, using the least number of classes, ids and "structural" elements as possible, semantic markup, and only using tables to display information that properly belongs in a table.
The code snippet posted looks like it could be simplified - if you would like some suggestions post a bit more code and a description of what you are trying to achieve.