I have been working at a large company for almost two years (first graduate job) and the work I do is interesting and I get on well with the team. However, I am aware that this team is very small and the type of work I am doing is fairly narrow. I also learned all of my coding skills during this time.
There is an opportunity to move teams. I think I would benefit in the long run from experiencing how a different team runs and learning/collaborating with new people. The team I am currently with says that I would be welcome to move back (which I am pretty sure I would want to do eventually), but politics and teams change and in the end there is no guarantee of that.
Is it ever sensible to move from a job you enjoy for experience/improve career prospects?