Can you use batteries to power a device that uses a plug?
From the comments:

Plug is the cord that exits the device to connect to the electrical outlet.

No, you can't cut the plug off and use batteries.

You mains power is AC (alternating current and voltage) and relatively high (120 or 230 V).
Your battery is DC and low voltage.