Modern T5's that usually run on electronic ballasts definitely can. I can't say for sure which others do.
However the dimming ballast must have an unswitched live connection as well as the dimming signal from the switch (there's several different signalling formats, and dimming ballasts usually support multiple standards).