You can do anything you want, for sure, but should you install the transformer in the house? Absolutely not. Look more closely at the transformer and you'll likely see that it is only approved for exterior use/installation. It has to do with the type of wires and components used, but there are good reasons why it should not be installed inside.