Yes. Form W-2 is Wage and Tax Statement. The cash method of accounting is used by many taxpayers. Under that method, wages are reported for the year in which they're paid. Any wages actually paid on December 31st are included in the total of wages paid for that year.
For more information, go to www.irs.gov/formspubs for Publication 538 (Accounting Periods and Methods).