It is not mandatory, it depends on your activity. Don’t be like most people who choose a slogan that clearly describes what you do: function slogan.
Of course, it doesn’t work for everyone, but it’s worth thinking about.
If you can use phrases found in your keyword study, it is even better to improve your visibility.