As long as you can hold the power and keep it consistent you are good. Its about the amount of work and workload you do. You just don’t wan to be 30 minutes into it and go from riding at 92 - 94% of TP to like 86% or lower.
Also sometimes it depends on your goals or specific events. If you are going to do a race with 10 minute climbs might be nice to get that duration of work in.
I tend to like to do the longer intervals myself. If indoors though it is nice to break up the efforts and have the mini goals of of 10 minutes.
So to make a long answer short no as long as you can complete the proper work. If you are going to do some gravel races, long time trials or etc it is good to feel out doing efforts that are that long and adapt to that.