Yes - it's pretty simple:
string path = @"D:/MyData/Account";
string name = Path.GetFileName(path);
Or if it could be an actual file name and you don't want the extension:
string path = @"D:/MyData/Account.xlsx";
string name = Path.GetFileNameWithoutExtension(path);