Conditional formatting can change the format of a cell if a certain condition or conditions is/are met, but it cannot insert hyperlinks.
This CF formula can change the format of a cell or cells in say, Sheet1, if say cell A1 in sheet2 is not blank:
= Sheet2!A1 < > ""