Correct, vlan can be on a layer 2 switch without needing to be configured on the layer 3 switch.
In my picture you will see 1234 exists on the switch, but not the MX. If you configured 1234 on the switch and any layer 2 trunks it should work just fine.
The part I have not tested/confirmed is if the MX will pass the "1234" vlan when "allow all vlans" is enabled on a MX trunk port. You cannot allow just 1234 on a MX trunk link without it being configured, and obviously there would be no layer 3 routing if you did not configure it.
![Aaron_Wilson_0-1603129491933.png Aaron_Wilson_0-1603129491933.png](https://community.meraki.com/t5/image/serverpage/image-id/15270i122A1160E18CB37B/image-size/medium?v=v2&px=400)
![Aaron_Wilson_1-1603129531612.png Aaron_Wilson_1-1603129531612.png](https://community.meraki.com/t5/image/serverpage/image-id/15271i5E3ECF879825C83E/image-size/medium?v=v2&px=400)