Code on menuitems with sub-menus

Hi
i have noticed that if a menuitem that has submenus, all the code written there (on the mainmenuitm) will not be executed.
Is this normal ?

Yes.