No, if you apply for the Civil Services Prelims Exam but do not appear in any paper then it will not be counted as an attempt.