Yes, you can fast during travel, but it's not obligatory. If fasting causes hardship or difficulty during travel, you can skip it and make up for it later.