Thigh irritation?

Im a ftm, so sorry if this is a stupid question, but if my little guy has irritation on his thighs from where the diaper rubs would I use diaper cream or something like aquafor? Edit: it's not exactly where the diaper sits but I think from his inner thigh rubbing on the material.