Technically, you can keep an ostrich as a pet, but it's not recommended. Ostriches are large, powerful birds that are not well-suited to living in captivity. They require a lot of space to run and exercise, and they can be dangerous to humans and other animals if they feel threatened or agitated.
In many places, it may also be illegal to keep an ostrich as a pet without a special permit or license. Additionally, ostriches have unique dietary and environmental needs that may be difficult to meet in a domestic setting.
It's important to remember that wild animals, including ostriches, are best left in their natural habitats where they can live and thrive without human interference. If you're interested in having a pet bird, there are many other species that are more suitable for domestication and can make great companions with proper care and attention.