You can use any font you like as long as the font’s license allows you to! You should always check the licenses for use of any fonts you didn’t create yourself.
Wordmark logos, which consist only of text, are an exception to this rule. In these designs, you must provide your own, original font. It can be based on another font, as long as the font’s license allows designers to make derivations from it.