Yes you can, but this is a very different situation than for couples who are not married. The reason for this is that once you marry you automatically obtain certain legal rights which you may be giving up in a prenuptial agreement. However, prior to marriage you have not yet obtained those legal rights, so there is nothing to give up. These are called post nups and you can find more information about them over here.