Yes, you can, but the texture may change slightly due to the coconut milk. However, if you're cooking the dahl specifically to freeze it, you can leave out the coconut milk and add it when you thaw and reheat. It'll keep in the freezer for 4-6 months.