Yes, you can. Basically build your entities exactly as you'd expect, and use the 'add_part' method to attach one entity as a part of another multipart entity.
$inner = new MIME::Entity ( ... );
$outer = new MIME::Entity ( ... );
$outer->add_part($inner);