yeah, both ways are F. the second one is just a bit harder, but also sounds fuller.
the first is the easy, cheap way to do it. and as a beginner its the easiest, most effective way.
once you have better controll of your hands and the fretboard, you can do the second one with ease.