Can I add a resource with a specific role to a task?

Yes. The bill rate, cost rate, and allocation specified for that resource for the specific role in Manage Project Resources page will be used.