They can, but with great caution unless familiar.
Aluminium is a metal so cannot be penetrated by microwave energy. This means that any microwaves are only absorbed through the top (open) part of the container to a depth of only about 3 cms. The aluminium effectively shields the sides and base of the of the food from overheating. This can be very useful when making delicate sauces.
Because aluminium is an excellent conductor of heat ( that’s why a lot of conventional cookware is made of aluminium) any heat in potential hot spots will be transferred around the container so more even heating can be achieved.
By far the greater benefits are:
That food can be cooked in the container rather than it needing to be transferred to a non metallic container.
Food toppings can be finished under the grill or browned as part of a combination oven cooking cycle.
Use only shallow foil containers, no deeper than 3 cms.
Use singly in the centre of the microwave glass tray to avoid getting too close to the oven sides.