Creating a sound button that when clicked starts or stops the music

Instead of using 2 buttons to start or stop the music, is it possible to just use one? So when the music is playing, click it and it’ll stop, but when the music is stopped, on clicking, it will start.