Yes, keeping pet fish can be safe as long as you provide them with a suitable environment, proper care, and regular maintenance of their tank. It is important to research the specific needs of the type of fish you want to keep and ensure you are able to meet those requirements. Additionally, following best practices for fish care, such as monitoring water quality, providing appropriate nutrition, and addressing any health issues promptly, can help ensure the safety and well-being of your pet fish.