Should I pet the belly of a cat who is laying on its back?

It depends on the cat. Some cats may enjoy having their belly rubbed and will permit you to do so. Other cats may not appreciate it and this position may be a trap for them to bite and kick your hand.