Yes, wild camping is legal throughout Scotland, including Newton Stewart, as long as you follow the Scottish Outdoor Access Code.