No I don't recommend to do that or otherwise.
What I was saying is that
Knowing more about infrastructure will improve you in data engineering.
Knowing more about frontend will improve you in backend.
Knowing about software development will improve you at being a team player.
Etcetera, etcetera.
For career, you might want to balance between what you're interested in and what's needed right now.