Yes, CloudFront is now capable of working with any origin server that holds the original versions of your content - static as well as dynamic.
All you've to do is create an S3 bucket and store your website or application content there and then go ahead and create the CloudFront distribution.