Can you collect resources from a roll if you move the robber after rolling?
By the time you roll, it's too late. You can play the card before rolling, in order to move the robber and hope for the best. But when you roll the die, you immediately dole out the appropriate resources, so if the robber is still there, you don't get anything.