How to temporarily connect inverter-generator safely to mains panel
No, you need to install proper transfer equipment. The transfer equipment allows you to automatically, or manually switch between power sources safely.

If you simply backfeed the panel, you could potentially kill a linesman working to restore the power.