Yes you can. I do it nearly every time.
One thing to keep in mind though is that if a resort is booked up or almost booked up, Disney may not offer an AP discount for that particular resort or they may only have a couple of AP discount rooms so when your friends call, there may be none left so they would have to switch resorts if they want that AP discount.
I've had to switch resorts before to get the AP discount. Not a big deal to me but it might be to some folks.