Was the pinhole camera the first camera?

yes the pinhole was the very first camera invented!