Yes, if he files a paternity lawsuit to establish he is the father. A judge will order you both to take a DNA test.
DISCLAIMER: Any information contained herein is intended for general informational purposes only. The information should not be construed as legal advice and does not create an attorney-client relationship. Any response given does not result in any further obligation to provide an additional response. Seek competent legal counsel for advice on any legal matter.