yes it's possible, but it's not trivial to do so. By which I mean there's no template support for fields to be created on the fly, so some embed code would be necessary.
That said, you would be able to make use of all the methods that exist for creating controls, so it would be a lot easier
than generating the HTML from scratch.
cheers
Bruce