No reason it wouldn't work, although the installation would be kind of conspicuous. If the dimmer is controlled electronically, you could even put it on a timer to flower it. The amount of light would be seasonal though, so you might have to supplement it during certain seasons or for more plants.