Unfortunately no, but a few brave souls have done so. It is slowly getting easier.
7 karma · joined September 19, 2015
And programmatic manipulation (while not impossible) of a Stan program was not high on our priority list. Since the underlying language is C++, you can bypass the Stan language and write (or generate) the C++ directly with a lot of effort. It uses standard (including Eigen) data structures.