Unknown, but almost certainly yes
The closest thing we have to precedent is the impeachment of Senator BlountThere are two impeachment incidents which seem relevant, both concerning an impeachment trial that occurred after the impeached official had left their position or been removed from it through other means.
The impeachment of Senator Blount occurred all the way back in 1797. This was in fact the first federal impeachment ever. Senator Blount was implicated in a landgrab conspiracy. The House began impeachment proceedings against him as a result. The Senate, however, had ideas of its own. They did not seem to like the idea of the House having a say in getting rid of a member of the Senate. Instead the Senate quickly exercised its constitutional power to discipline and expel a member, doing so almost unanimously.
If they had dismissed over lack of jurisdiction but not mootness, that would be a telling precedent for your question: having already been removed from the position would not inherently kill off the impeachment, the trial thereof, or its consequences (notably, the potential to be barred from future office). But if they had dismissed in part because of mootness, that would be precedent in the other direction: being already removed from the position would strongly suggest the impeachment is then null. TheThe failure to pass the resolution that they had jurisdiction, that Senators were "officers of the United States", would seem to indicate that the dismissal was in fact for lack of jurisdiction. Most believe the case is precedent establishing lack of jurisdiction, at least. But ultimately we just don't know if "mootness" was involved or not.
FinallyIn 1876, Belknap was President Grant's war secretary, known for living a comparisonlavish lifestyle that seemed well beyond his government salary. Eventually it was discovered that he had been engaged in graft in a display of corruption that was brazen even relative to Grant's scandal-plagued administration.
Just before the impeachmentHouse was to vote on articles of Andrew Johnsonimpeachment, Belknap tearfully handed in his resignation to Grant. This did not deter the impeachmentsHouse, who thought it would be a serious subversion of Bill Clintongovernment and Donald Trump will make it quite clear that there's really no sane comparisonjustice to be made between howsimply let someone off the hook because they bailed on the office. The Senate had to address whether or not they retained jurisdiction and could try an impeachment of someone who was perceivedno longer in the office. They voted that, in fact, they did, and thought of onthe trial proceeded. Ultimately a legal or practical levelmajority voted to convict on all counts, but they all fell short of the two-thirds mark required by the Constitution.
Thus Belknap was acquitted in 1797 versus todaythe Senate, but nevertheless the trial sets clear precedent that an impeachment and subsequent trial can both occur after the accused official has left office. As
From that we can conclude with near certainty that a President can similarly be impeached and tried after he has left office. But as it's never been tried—there was an opportunity to do so with Nixon, but ultimately the House did not proceed further once he resigned—, and these precedents are over 130 years old, it's a little hard to say if a modern day Senate have pretty broad latitude in howmight see things differently. Perhaps they handle impeachments, your situation would almost surely devolve into a political calculus largely divorced from legal and constitutional theories and precedents; same as impeachments of sittingargue that Presidents are different with regards to impeachment somehow, possibly trying to argue that the House's failure to pursue Nixon any further is precedent thereof.