Yes a t5 can be used for all of veg, you will want to train them to spread out and be bushy as t5s don’t have great penetrating power, so growing Xmas tree style plants won’t do well under a t5.
But top them and train them and a t5 will veg a plant as good as any other light IMO.