Yes, these are most commonly named “drill drivers” and will be able to complete both tasks. However, with some, you might find that they are less powerful than some standalone models.