You definitely can because AdSense Terms of Service are okay with it. Affiliate marketing has a higher earning potential, but you can still use both.