Yes, your diet can affect the occurrence of flyaways. A well-balanced diet that is rich in vitamins and minerals is essential for healthy hair.