With HHonors it sometimes happens, but the rule is, no. The HHonors terms and conditions clearly state you will not receive points for rooms booked via third parties like Expedia. But HHonors and Marriott both have a best-rate guarantee on their own sites, so if you see a better deal elsewhere, call the chain up and ask to have it matched, with points awarded for a direct booking.