Usually not, if by “brass band” you mean the UK-style band used in contests and many community groups. Those bands are built around cornets. Trumpets do appear in many other brass groups, such as New Orleans-style bands and many US concert and marching bands.
Cornets in a UK-style brass band
A UK-style brass band uses B♭ cornets and an E♭ soprano cornet. Their parts are played by cornet players in soprano, solo, repiano, second and third roles. Cornets form the largest group in the band. For the other sections, see brass band sections.
Trumpets are not part of the standard UK-style line-up, so a band that plays the usual repertoire will expect cornets.
Cornet and trumpet: what’s different
Both instruments are B♭ instruments with three valves (the cornet is the trumpet’s closest relative), and they share the same valve fingering. A trumpet player can read the same notes on a cornet without relearning the fingerings.
The main difference is the bore, which is the shape of the tubing inside the instrument. The cornet’s tubing is more conical, so the air column widens gradually. This gives a rounder, mellower tone. The trumpet’s tubing is more cylindrical for most of its length, which tends to produce a brighter, more focused sound. The two instruments also use slightly different mouthpieces, and the feel can differ.
Brass bands that use trumpets
In the US, the term “brass band” can mean a New Orleans-style group or a marching or concert band with brass. These groups usually use trumpets. Many US concert bands and marching bands also use trumpets rather than cornets.
For how trumpets are used in jazz, which is a different tradition again, see brass instruments in jazz. A concert band is a separate type of ensemble, and it is compared with the UK-style brass band in brass band vs concert band.
Can a trumpet player join a brass band?
Often yes, with some adjustment. The fingering is the same, so the main changes are the tone and the feel of the instrument. Many trumpet players take up cornet for a band, and some switch fully. Because bands are built on cornets, a musical director may ask a trumpet player to switch.
Ask the band which part they need before you commit. The band may have room for a cornet player but not for an extra trumpet.
Check the band’s instrumentation first
Before you buy an instrument or pay for lessons for a band, ask which instruments the band plays and which parts they need. A trumpet bought for a UK-style band may not be the right choice, since the band plays on cornets. Asking first can save money and avoid a switch later. If you do need a trumpet, see rent or buy a trumpet.