Yes. You are entitled to take contact information from witnesses and others involved in the accident. Just take down facts. Do not admit fault or discuss your side of the case without consulting your attorney.