Just to touch on this topic for future users.
-NO- you cannot always replace 7402's with 74LS02's.
There are several occasions where there is a high current load on the 7402. The 74LS02 cannot provide nearly as much current as a 7402 can.
There is no simple answer to this one. In many cases, you can replace 7402's with 74LS02's or the newer 74HCT02's. This is whenever the load on the '02 is light such as only driving a couple other logic IC's. But, when driving high current loads (e.g. Williams Solenoid drivers), you must use a high current device such as another 7402 or 74S02 or 74F02.
When in doubt - ask here. But make sure you also mention where the part is used in addition to the part number.
Ed