$ionicHistory go(viewId)

Hello, I just started working on $ionHistory. Is it possible to go to navigate back to nth view using $ionHistory? Lets say I navigated from Screen1->screen2->screen3. Form screen3 I want to got to screen1. I am currently using history.go(-2).

is there any way I can acheive the same with $ionicHistory?