I would say no. Krakow is really great, but so are a ton of other places in between Munich and Prague. Save yourself some time and visit something on the way. I would say Cesky Krumlov would be on the way, or you could even go for Salzburg, or Rothenburg.