Most people start publishing while they're still in graduate school. The sooner you can do that, the better off you are. Getting published by a well recognized journal is no small feat, as published articles are carefully scrutinized through a peer review process. It's also important to be patient and get comfortable with rejection when first starting out.