Yes, you can obtain custody of your child even if you were never married as long as paternity has been established. Paternity may be established through either an acknowledgment of paternity or through a petition for paternity which may be filed with the court to establish that you are in fact the father of the child. After paternity is established, you may file a petition for visitation or custody of the child or children with the court.