Try to use this formula:
=IF(LEN($A2)<>0,"Yes","-")
or
=IF(LEN($A2)<>0,"No","-")
But you may need to drag-down the formula manually if you will use this. That is why I decided to set the cell value to "-" if ever column A is empty so that you will be aware until which row did you copied the formula.
Sample Sheet:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…