No, layouts and activities are not strictly related; you can load a layout even into a Panel (by code, not by Designer).
The fact is that if you generate members from within the Designer, the code will be written to the current module, even if it was not an Activity (code module, service module or class module).
So you have to pay attention to which module (Activity, in this case) is currently open.