Buddhism shares many deities with Brahmanism(Hinduism) and Jainism for example, Indra, Yama, etc. (Though the story associated with them might differ between the traditions, the central persona is the same).
There are also many other deities which Brahmanism and Jainism do not share with Buddhism. Did Buddha forbid paying respects to such deities?