Sure, if I've enjoyed my time and learned something useful I won't write it off as "wasted". Who knows what the future holds.
I just recalled a Steve Jobs quote while writing this comment: "You can't connect the dots looking forward; you can only connect them looking backwards."