The answer is Yes.
You can build just about any type of application in just about any language, as there is sure to be a framework in whatever language you choose for whatever type of app you want to build.
So, please, I'm begging you, STOP asking if you can build an application in whatever language you happen to know.
Instead, start asking more specific questions.
For instance, let's say you're building a web application, and one of the application's non-functional requirements specifies that the application must work for all users, regardless of what browser plugins they have installed. If that's the case, you might want to ask a question such as
Do Java applets require a browser plugin?Or, maybe one of the non-functional requirements for the web application is that it must be secure from SQL injection attacks, in which case you might ask:
Does PHP support parameterized queries?I think you get the idea. It's not very helpful to ask whether you can build something in a particular language, but it is helpful to ask whether a particular language supports the specific functionality that your application requires.