Can you escape Ravenloft with an Amulet of the Planes?


Due to shenanigans of my Dungeon Master, my character managed to get an Amulet of the Planes, but accidentally teleported into Castle Ravenloft while playing the Lost Mine of Phandelver. Can my character use the Amulet to leave Barovia, or is it stuck there until I finish that campaign?

If it helps, my character is a Level 4 Warlock.