I can’t think of any reason why not, so long as there’s no risk that they could be accused of colluding to coerce you into signing the document (after which they’d be able to back each other up and claim you signed it of your own free will). Same as with any other witnesses, really.