Can I apply for a patent if someone else's technology is cited in the program?

The idea/step of compiling the source code into a program/algorithm can be applied.

If programmed into steps, you can submit a patent to protect a certain method (including the above steps); If compiled into a program, you can submit some patents on computer hardware (including the above programs).