Theoretically, yes, as long as they are light in colour. It's not done in Thailand, but in other countries, there are similar bean paste treats using white beans. The flavour will obviously differ but you can certainly try it out.