Can I match a prepayment to a purchase order?

Yes, and the invoice that you apply the prepayment to must have at least one line matched to the same purchase order as the prepayment.