Sure, or you can read the bottle and ask your vet.
Lavender oil is effective against fleas. I have a baby shampoo with lavendar oil in it, and it killed the fleas better than my flea shampoo. It didn't hurt the kittens or the dog. I'm sure if you got some lavender oil and used it in a natural spray, it would be effective and safe to use around pets and kids.