Yes, as long as you’re comfortable with your dog laying on you, it is fine to let them do so.  If you prefer that they not lay on you, or not lay on you at certain times, you’ll need to train them to stay off or get down at your command.