Yes, after you compiled the libraries and installed the produced binary files to their destination directories, you can safely delete the source directory. Please note however that sometimes it is still handy to keep them around as they may contain additional documentation or usage examples - and there are occasions when you might have to recompile them.