Pet cameras are usually safe from hacking, although you should check the details of a specific device to view the safety measures the manufacturer has put in place.
Hackers will often try to trick owners into giving them access, so avoid giving out any passwords to people you don't trust.