Generally data can be retrieve safely even if the logic board is in bad condition by connecting externally but in some cases where SSD is in-built to the logic board, data will be safe only when the board is repaired.