Can perforation in rectum be detected within five hours of anal sex?

Can anal perforation result in producing more gas?