The small amount of nutmeg used in recipes is very unlikely to cause serious toxicity, though mild stomach upset could occur if a small amount is ingested.
A pet would need to ingest a very large amount of nutmeg, and this is very unlikely to occur if a dog or cat ingests food with nutmeg in it.