You can name him whatever you wish. However if the alleged father petitions for a paternity test and is proven to be the biological father, he will be able to petition the court to have the last name changed to his. It will be up to the judge to decide.
Most likely if the child has not identified with the name, the judge will order that it be changed.

