War file is can be extracted. but what you will get is the directory structure with compiled source code binaries and not actual source code. you can however use decompiler to translate class files back to
java source files. infact netbeans has inbuilt decompiler . if you try to open a class file in netbeans it will show you source code representing that class file