If your strings are starting to sound dull or dead, then changing them all at once may be the best option. This will give your guitar a fresh start and hopefully help it to sound its best. However, if you're happy with the way your strings are sounding, and just one string has broken or is causing you an issue, replacing that one string is no problem.