It's worth it if you really like your hubs but need new rims. It's easier if you have conventional hubs rather than straight pull or paired spoke design. It's convenient when you're replacing with rims of same ERD so you can just move one spoke at a time. New nipples are a good idea.
But for a trainer, as long as the rim is true and holds the tire and pressure, it's fine.