I'm sure after a lecture by Spock on time travel and temporal mechanics McCoy would voluntarily inject himself with cordrazine.
Leading to McCoy rushing off to beam down to the planet once more. Spock and Kirk look at each other with a knowing smirk and say "here we go again!". They exit the bridge with comedy music playing...