Possibly. One would need more facts to ascertain if you qualify for visitation of your grandchild. The short answer to your question is that there are laws that do permit grandparents (and great grandparents for that matter) to get custodial rights to their grandchildren under certain circumstances.
In no way is this answer designed to substitute for individualized counsel from a licensed attorney in your local region. No legal advice is proffered in the foregoing answer, I disclaim all responsibility for any actions taken in reliance upon any material in the above answer. The answer is provided for informational purposes only, and no action should be taken prior to consulting with a licensed legal professional. This answer does not create any attorney - client relationship with the questioner.
Sign up to receive a 5-part series of useful information and advice about child custody law.