When you distribute your app through the way of in-House development,you must create a Provisioning Profile with which the user will be authorized to use the application.
So the ios device which is not added into the provisioning profile will not be able to install the app.
For more detail, have a look at http://www.apple.com/business/accelerator/deploy/