It does appear that there is an association between infant colic and future risk of migraine. Several studies have found that infants with colic are more likely to go on to develop migraines than infants without colic. However, not every child who had colic as an infant will develop migraines. It is also unclear why colic and migraine are associated, though it could be related to a genetic predisposition that is associated with both colic and migraine.

Reference from the medical literature

Gelfand AA, Goadsby PJ, Allen IE. The relationship between migraine and infant colic: A systematic review and meta-analysis. Cephalalgia 2014;35(1):63–72