Yes, it's possible, but coconut milk will bring a different flavor and, as it's less fatty, the texture will be less creamy and will take longer to thicken. It's a good option for making vegan caramel, but you can also use coconut cream.