Yes, but you cannot use the same wages for both programs. You must ensure that the wages used to calculate the ERC are not included in the payroll costs for PPP loan forgiveness.