Yes. The discretionary match is limited to 4% of pay, the formula for the match must ignore deferrals over 6% of pay, the rate of match cannot increase as deferrals increase, cannot have any allocation conditions, must be described in the safe harbor notice, the plan must have provisions for the match, it must not allow any HCE to receive a higher match than any NHCE at the same rate of deferral, to name a few requirements.
it can be subject to a normal vesting schedule, such as 6-year graded.