You don't have to take trumpet lessons to expand your range, but I'd recommend it. Even just one or two lessons can be enough for you to learn the basics of good technique. Then, you can use what you learn when you want to play a new note in the future. Just make sure you work with a trumpet specialist rather than a general music teacher so that they know the instrument well.