Yes deleted invoice can be recover anytime when need
You can restore them through deleted invoices report
Go to Reports >> Deleted Invoice
Get a list of all deleted invoice, To restore click on Three Dots(...) >> Restore
Also, here is the video tutorial for your reference