You sure can! They're not quite as tender as pinto beans, though, so they won't mash quite as smooth, and the cooking time may vary. However, refried black beans are also super delicious. You could also use red kidney beans or even a combination (i.e., half black beans and half pinto).