In general, yes. However, there are many reasons you might consider dropping a few dBi levels: convenience of installation, getting multiple carriers in your network, overall cost, and whether your booster is likely to overload from too much incoming signal.
A "5G" antenna usually adds the T-Mobile 5G band, which brings its range to 600-2700 MHz. These do nothing for Verizon or AT&T 5G, which are broadcast on millimeter wave and not cellular bands. Thus, they can be used with 5G-compatible signal boosters on the T-Mobile 5G network.