If the plug you are talking about looks like a regular plug that would plug into a wall outlet, that is the engine block heater plug used to heat the coolant and oil in severe cold weather. It will not charge the battery.
If yours has an aftermarket battery minder, it will also have a regular plug but it is located by the battery. That would charge the battery but takes 24hrs for a dead battery
You will need to use a jump box, or jumper cables hooked to another car's battery to jump it immediately
If for any reason, you can't rate my answer OKAY, GOOD, or EXCELLENT/3 STARS OR HIGHER today. Please reply and let me know why, so I can help more/better. All follow up responses are FREE, after completing the required rating
Please remember to rate service using the separate rating page. Thank you
Please note that if you have a subscription service, you still are required to rate service, however you are not charged again. This is just so that your expert is credited for their time and services. Thank you.