Did Neil Armstrong had to fill out an immigration form after the Moon trip?

Yes. All astronauts from Apollo 11, including Neil Armstrong had to complete their customs forms after their journey to the Moon.