two arduino boards for single project

can i use two arduino boards on a single project. the main question is how to connnect the two wirelessly? can i operate both at the same time? how will i program them?