No, travel expenses for education are not qualified education expenses and are not an exception to the early withdrawal penalty for a 401(k) withdrawal.
See this IRS Tax Topic for exceptions to the early withdrawal penalty from accounts other than an IRA - https://www.irs.gov/taxtopics/tc558