Yes. But.
The TransAm is 4215 miles - more than twice the distance of the Pacific Coast route.
So 25 days x 2 = 50 days; plus another 5 days = 55 days; or 8 weeks.
And you have the time needed to get to/from Astoria and Yorktown.
The basic math is 76.6. (125 km) miles per day, every day, no falling behind.
Plus you would be riding at the hottest time of the year.
The Pacific Coast route has pleasant temperatures and excellent services all along the way.
Don't know where you are from but if you haven't ridden in 95F (35C) temperatures with 95% humidity -
Which s like a Turkish steam bath in much of Virginia, Kentucky, and Missouri -
Or scorching 105F in Kansas and eastern Colorado - albeit with less humidity -
Then you have another thing coming.
Not sure when you did the Pacific Coast, but summer weather is dry and sunny.
Summer thunderstorms happen almost daily in the Great Plains.
They are, big, powerful, and dangerous - as Dorothy will tell you.
Lightning and cycling do not make for a good combination.
So 8 weeks is really pushing it with very little leeway.
What if your rim cracks or your derailleur snaps and you have to wait two days?
What if you encounter something that cleans out your insides and you have to stop?
Even something as basic as flight cancellations or missed connections can delay your start.
You can save 100+ miles be starting/ending at Florence, Oregon.
But Florence is harder to reach to/from Portland airport.
And it is time-consuming to get to/from Yorktown in the east.
Just a few caveats.
9 weeks would be better.
Anything less then 8 weeks would be inviting trouble.