You can definitely learn by yourself. Note that you will need to have discipline to learn. You will need even more to learn alone.
Using someone else words: Piano is a very deep art. The fact that is polyphonic with all the scope of dynamics make it a complex machie to master. People spend a life studying piano.
If your goal is to play a couple of simple songs to amuse yourself and friends you will be able to do it.
Else I really advise looking for a teacher. You will progress a lot faster and you will avoid many pitfalls. A very important aspect of learning an instrument, sometimes negletected, is benchmarking. You can always do more, comparing yourself to others will give you the needed benchmark and inspiration to progress faster and do more. If you study alone you will make mistakes that you are not aware of and you wont be able to benchmark yourself.
The physical part of learning piano is about finger mechanics and getting practice with movements. If learned wrong from the beginning they will be a barrier for future learning. Note that scores omit a lot of information. Its assumed that the player knows it. Even learning it from videos or books will hardly be enough to play well. Concepts like rhythm are hard to learn just by looking at videos. Even worse only learning from a book.
This is probably not the answer you looked for. I totally encourage you to start for yourself if that is your wish, but if you decide otherwise look for a good teacher. Don’t rely only on price. An experienced teacher, with a solid background, can make you progress much more and avoid wrong habits and pitfalls.