Jumping the sinking Nazi boat without drowning was hard, as virtually all who tried found out. If Yugoslavia switches sides, Germans units are bound to keep a close watch on their neighbouring governments, in close readiness to do similar coups than in Hungary in OTL.
Unless, Yugoslavia pulled a "Franco" --- be just "friendly" enough from the very beginning---provide a division for the East, non-agression, trade with the Axis, etc.