Short answer: no. There is no rail connection between Alaska and the rest of the United States. Alaska is separated from the contiguous 49 states by Canadian territory, and no passenger or freight railroad crosses that gap.
Travelers have two main options:
If you’re dreaming of a cross‑country rail adventure, you can take Amtrak to Seattle or Vancouver and then hop on a cruise or flight to the Last Frontier.