You can get a credit card based on your salary if the bank approves after assessing your income, credit history, and product policy.
Having your salary deposited in the bank helps prove your income, but it doesn't guarantee approval.
Before accepting, focus on the credit limit, annual fees, interest rate, grace period, and cash withdrawal fees, not just the ease of issuance.
The figures, fees and limits in this answer vary by bank and change over time — confirm them with your bank or the official source before acting.