Yes, you can. Starting with MLB 12 and every release after it, the games include a character creator that lets you build your own player from scratch.
It's a fun way to put yourself—or a completely original creation—right onto the diamond.