Yes, you can easily use the same machine for both cardboard and plastic, but not at the same time. We recommend that you sort your waste and make separate bales.
Use recycling racks to sort and collect soft plastic waste while you compact cardboard. When you have collected enough bags of plastic, compact a bale.