Yes, you can target yourself.
However, note that multiple castings do not stack. It’s a same-source issue; you can’t keep casting the spell to get more. So you get 1d6/2 levels worth of HP (average 1.75/level, which won’t approach the cap unless you are badly hurt and have very low Constitution), which is poor compared to false life’s 1d10+level (average 5.5+level) at least until CL 8. Note that even after that, false life is lower level, has a far longer duration, and doesn’t hurt yourself.
Though I guess you could do both, since they stack with each other, so that’s obviously going to be higher. Still better if you’ve got a target who you don’t care about healing, though.