No you can shave without shaving cream, but I don not recomend it.
Shaving cream lubricates the skin so that the razor balde glides over it cutting the hair only. Without shaving cream you would experience a lot more razor nicks.
You can use ordinary bar soap.