You should love a person and can love them unconditionally. We should just not get attached to them. We should not get attached to what they were providing us, whether encouragement, companionship, confidence and so on. Often times people change, times change, expectations hurt and people leave our lives. Just make sure you have a life with friends and family too so that you are ready for whatever life throws at you.