I have got a short answer to my question in a comment, which was correct as here. Later, another user provided an answer, which was the same as the comment but with some additional details which were not necessary for me to understand the answer.
Ideally, I would like to accept the comment as the answer, which however is not possible. So I accepted the posted answer instead. So I have been wondering whether it is ok to accept a posted answer (which may just be elaborated on an earlier comment).