Can I convert usb-male device to usb-female pluggable device?
This is not possible for micro B or type C. Lightning is not as well documented but likely similar. USB-C to C cables will enable this sort of thing by design and include a dedicated CC wire in the cable partly for this reason but existing USB-A terminated cables cannot do what you want and electrically identify themselves as connecting to an upstream port.
For USB micro B The connector has a fifth pin (sense) that electrically identifies what role the connected device should assume. Normal cables leave this floating and various resistances to ground mean different things (shorted==USB upstream,100K=USB upstream w/ external 5V). Obviously this isn't accessible at the USB A end of the cable.

USB C does something similar with the CC pins which are again handled by the USB-C connector on the end of the cable for A to C cables. These identify themselves electrically as connecting to an upstream device and this cannot be overridden at the USB A end.
Lightning is Apple's special proprietary snowflake and I have no idea but here too it almost certainly won't work.