A pilot doesn't just fly the plane. But can you be a pilot if you don't fly the plane?
You could pilot a crewed vehicle without a license, but that is, usually, not lawful. You might not be a pilot, but you would be piloting.
You are a pilot if you have a license, and you usually cannot obtain a license without having flown a plane with instructional personnel.
In some places you may pilot a drone for which you don’t have to maintain a license or registration.