Yes, the option of representing oneself in court is available but not always advisable as not everyone comes from a legal background and understands the proceedings and etiquettes of court.
Even a small mistake can cost you your parenthood but it is possible as there are many legal advice resources (like the ones discussed) that provide free information and solve queries regarding the same.
The court does provide free public defenders for child custody battles if asked in cases where one doesn’t want to represent one's own self and the only reason to resort to this option is lack of money.