Yes, but the flavor is best when beans are cooked from scratch. To make rajma masala from canned beans, skip pressure cooking. Use about 2-15oz cans of kidney beans, drain and rinse them, and then add them to the onion tomato masala at the same stage as you add the cooked kidney beans.