A certificate of deposit can offer solid returns and be worth the restrictions under certain circumstances.