You can but remember that light will still permiate most blinds. I did have to keep a tank in front of a window once because it was the only place it could go. I used room darkening shades but still found the algae growth to be accelerated compared to when it was not in front of the window with that being the only changed variable.
Also take into consideration where you live and the climate. Windows will allow alot more temperature fluxuations than a solid wall. If you live somewhere that has more defined seasons, you will have to be more diligent in making sure that your temps in the tank remain steady, which can be a huge task.