Use touch to spawn a prefab

I am trying to use touch to spawn a clone of a prefab every time the screen is tapped. I’m not used to using touch. I would use onmousebuttondown but that doesn’t work with my pause button. How would I go about using touch to spawn an object?

if (Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Began){
//instantiate your thing here
}