You can use the simulator without a developer account.
You can install your app on a real device without an account however it will require you to use Xcode to deploy the app (without the ability to debug) and the app will stop running after a few days.
It is not recommended.