Yes, the compensation/salary is visible to candidates if you populate it. However this field is optional, so you can leave it blank if you wish.