Section 3. Pre-Trial Agreement. —

All agreements or admissions made or entered into during the pre-trial conference shall be reduced to writing and signed by the accused and counsel, otherwise the same shall not be used in evidence against the accused. The agreements in relation to matters referred to in Section 2 hereof is subject to the approval of the court: Provided, That the agreement on the plea of the accused to a lesser offense may only be revised, modified, or annulled by the court when the same is contrary to law, public morals, or public policy.