From Purdue website
“Students apply to Purdue using the Common Application. You will have the opportunity to select the primary location you would like: Purdue University West Lafayette or Purdue University in Indianapolis, as well as your primary major. You will also have the option to select an alternate location and major on the application.
Not all majors will be available at both locations, and you should select an alternate choice only if you are truly interested in the program. Changing majors or locations is never guaranteed.”
My understanding is that you can select CS as your primary major and WL campus as your primary campus. If you select the Indy campus as an alternate location, you will be considered for CS in Indy in case they cannot offer you a spot in CS at the WL campus. You can also select an alternate major that is different from CS, and they will consider your alternate major if they are unable to admit you to your primary major.
I suggest conducting your own research and only selecting an alternate campus location and major if you are prepared to accept an offer to join.