There is nothing wrong with such behavior as long as it does not cause any particular problems for the dog owners. It may not be pleasant to sleep on a pillow that was humped before, so get another one for your dog. To avoid embarrassment while having guests, teach your dog to do it in a specific place far from the living room.