You can absolutely use dry beans in this recipe. Give the beans an overnight soak, and then drain and rinse them the next day. When you're ready to make your refried beans, just add them to a saucepan with enough water to make sure they're fully covered. Then simmer for two hours until they are soft and mushy, and proceed with the recipe as normal!