Yes, you can substitute coconut milk for heavy cream in pasta dishes. Coconut milk adds a unique flavor to the dish, providing a slightly sweet undertone. Coconut milk will impart a subtle coconut flavor to the dish. Full-fat coconut milk will have a stronger flavor so if you don't like coconut flavors, opt for light coconut milk.