Yes, Ostia is an easy train ride from Rome. Most passengers are headed for the beach but you will need to get off the stop before. The entrance to the site is maybe 100 yards from the train stop.
Thanks!