In general, if you're buying your ticket with your credit card from the airline or booking using points through your bank's travel portal, you should receive credit. Conversely, when you redeem your miles for an award flight, you will not earn miles for that trip.