1. Her first book came out in 1902.

2. Her first book was published in 1902.
(Are both the same?)

Both are the same, yes.