Yes, seeking asylum is completely legal. But you must enter the country at a legal Port of Entry and apply there. AOC was schooled in this just a couple of days ago. You can't just wander across the border anywhere to enter the country and say you are seeking asylum. You must go through the proper legal steps.