"Is that possible"?
No.
Generally, you should run a sample and test. Then you'll answer the question yourself
You'll want to do something like:
private void button_click(object sender, RoutedEventArgs e)
{
NextWindow window = new NextWindow();
window.Show();
this.Close();
}