Yes it's possible and legal. However you might have to get out of boundary acceptance from the school in another city.