No, if your environment is standardized and stripped down you can run something that is very close to prod in your dev environment.
Note docker isn't the only answer for this, for instance, you can use ordinary VMs with vagrant, but docker does it at ludicrous speed.