It is possible that even though you may not have had custody of your child for a couple of years assuming you visited the child and made an effort to be in his or her life that assuming something happened to the custodial parent where he or she could not care for the minor, you should be able to have custody of the child under the laws of all states in this country.