Yes, the fertilizers that are specially made to be used in aquariums are totally safe for fish in the aquariums. However, there are some elements in the fertilizer that can be harmful to the inhabitants in the aquarium if you overdose it. I have written in detail about this topic in this article.