A a friend of mine said he could recommend me to a junior DevOps role at the company he works in, but I'm interested mostly in back-end development and DevOps is not really something I like. The question is: could I use experience as a DevOps to later switch to back-end?
Edit: more detail
Devops is not a position in itself. It's supposed to be a software development and operations philosophy.
I suppose you are trying to say this is a operations heavy position. And you are not interested in operating systems. And that's cool. You don't need to unless you want to. But if you really want to be a good, or better than good developer, it's great to know about the systems. How they are operated, how they are constructed, how operators think.
So to answer your question yes. However is that the best way for you? Only you can answer that.
Devops is not a position in itself. It’s supposed to be a software development and operations philosophy
This is the definition I know but unfortunately the term seems to have become a modern synonym for system admin/engineer.
Such a role might still provide valuable experience for a backend dev if there’s an opportunity to write production code for internal tools as well.
Developers at my company need to have a deep understanding of the environments they deploy onto (microservices, scheduled workflows, etc.) which can include configuring canary testing, rolling deployments, status probes, setting up and using monitoring, and very occasionally intervening to restart or redeploy running software. But these are secondary skills compared to writing code.