DevOps engineer will configure docker\tls\nginx and all that stuff
Yes: it helps the developer to learn to code much more defensively - which is a very good thing. But then, that developer has no time to code. Defensively, or otherwise.
(depending on the environment, and management's willingness to invest in infrastructure - yeah, you can really get bogged down in this stuff).