Yes there are devices such as the Jack Holland Pitchfinder which enable the player to lower and raise any note. But the trumpet playing public to a large degree do not want these devices (as evidenced by the fact that there is a large stockpile of these at the home of the inventor's heir). Players want to get their low D and C sharp in tune but not their fourth line E.
Merri Franquin had a wonderful design C/D trumpet (which Roger Voisin played for years) which essentially negated the use of anything longer than 2 and 3 valves (imagine not having to use 2 and 3 for high A flat!), but it, too, died. There have been attempts to revive it, the latest being by Clifford Blackburn for David Hickman from concepts drawn up by Bryan Ewing, a DMA student. This 5 valve design appears to be quite clumsy. I have started making a 4 valve C/D, based on my quarter tone C, initially for my own use.