Yes. You should try and avoid using bleach in the toilet when possible, and opting instead to apply a non-chemical cleaner such as soapy water for cleaning purposes.
In doing so, you’ll avoid causing potential damage to the glazing on the porcelain surface of the toilet.
If you do need to add bleach to tackle particularly tough stains, try to do so sparingly.